// 数据格式信息
export interface DataFormatInfo {
  dataformatId: string
  name: string
  direction: number
  requestType: string
  messageType: string
  dataformatType: string
  command: string
  url: string
  scriptType?: string
  scriptContent?: string
  decodeType?: number
  scriptId?: string
  protocolId?: string
  protocolVersionId?: string
  createTime: string
  updateTime: string
}

// 查询参数
export interface DataFormatQuery {
  pageNum?: number
  pageSize?: number
  name?: string
  requestType?: string
  direction?: number
  messageType?: string
  protocolId?: string
  protocolVersionId?: string
}

// 导出参数
export interface DataFormatExportParams {
  dataFormatIds?: string[]
  name?: string
  requestType?: string
  direction?: number
  messageType?: string
  protocolId?: string
}

// 分页响应
export interface DataFormatPageResult {
  total: number
  rows: DataFormatInfo[]
}

// API响应
export interface ApiResponse<T = any> {
  code: number
  msg: string
  data: T
}

// 删除参数
export interface DataFormatDeleteParams {
  dataFormatIds: string[]
}